#ifndef __TOOLS_UTILS_H
#define __TOOLS_UTILS_H
unsigned char utils_get_chartodata(char ch);
int utils_get_strtomac(char *macstr, unsigned char *macarray);
int utils_get_mactostr(unsigned char *macarry, char *macstr, char ckch);
int utils_ckc_ipvalid(char *ipaddr);
int utils_set_netinfo(char *ifname, char *ipaddr, char *netmask,char *gateway);
int utils_set_macinfo(char *ifname, char *macaddr);
int utils_get_macinfo(char *ifname, char *macstr);
int utils_ckc_udhcpvalid(char *valstr);
int utils_ckc_portvalid(char *valstr);
int utils_ckc_macvalid(char *mac);
int utils_ckc_pspidvalid(char *valstr);
int utils_ltrim(char *s);
int utils_rtrim(char *s);
int utils_trim(char *s);
#endif
